package com.baijiaxing.weixin.family.message.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 微信公众号是否关注
 * @author June
 *
 */
public enum FamilySubscribeEnum {
	UNSUBSCRIBE("0","取消关注"),SUBSCRIBE("1","已关注");
	
	private String key;
	private String value;
	
	private FamilySubscribeEnum(String key, String value){
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public String getValue() {
		return value;
	}

	public static Map<String,String> getMap(){
		Map<String,String> map = new HashMap<String,String>();
		for(FamilySubscribeEnum subscribeEnum: FamilySubscribeEnum.values()){
			map.put(subscribeEnum.getKey(),subscribeEnum.getValue());
		}
		return map;
	}
}
